package com.sbr.seb.planning;

import org.springframework.transaction.annotation.Transactional;

import com.sbr.seb.entity.composants.Category;
import com.sbr.seb.entity.composants.Item;
import com.sbr.seb.entity.livraison.Application;
import com.sbr.seb.entity.livraison.Version;
import com.sbr.seb.planning.dao.ApplicationDao;
import com.sbr.seb.planning.dao.CategoryDao;
import com.sbr.seb.planning.dao.ItemDao;
import com.sbr.seb.planning.dao.VersionDao;

@Transactional
public class AdministrationService {

	private ApplicationDao applicationDao;
	
	private CategoryDao categoryDao;
	
	private ItemDao itemDao;
	
	private VersionDao versionDao;
	
	public void addApplication(Application appplication) {
		applicationDao.add(appplication);
	}

	public void addCategory(Category category) {
		categoryDao.add(category);
	}
	
	public void addItem(Item item) {
		itemDao.add(item);
	}

	public void setApplicationDao(ApplicationDao applicationDao) {
		this.applicationDao = applicationDao;
	}

	public void setCategoryDao(CategoryDao categoryDao) {
		this.categoryDao = categoryDao;
	}

	public void setItemDao(ItemDao itemDao) {
		this.itemDao = itemDao;
	}

	public void addVersion(Version version) {
		versionDao.add(version);
	}

	public void setVersionDao(VersionDao versionDao) {
		this.versionDao = versionDao;
	}
	
}
